class RelationManager:
    _handlers = {}

    @classmethod
    def register_handler(cls, rel_type):
        def decorator(fn):
            cls._handlers[rel_type] = fn
            return fn
        return decorator

    def process(self, triple: EvidenceTriple):
        handler = self._handlers.get(triple.relation)
        if handler:
            return handler(triple)